﻿using project.B12.Model.Enums;
using software.Common.MVVM;

namespace project.B12.Model.Models
{
    public class ChangePassword : ObservableObject
    {
        private string oldPassword=String.Empty;//旧密码
        private string newPassword = String.Empty;//新密码
        private string confirmPassword = String.Empty;//确认密码
        private string oldPasswordTips = String.Empty;//旧密码提示
        private string newPasswordTips = String.Empty;//新密码提示
        private string confirmPasswordTips = String.Empty;//确认密码提示
        public string OldPassword
        {
            get { return oldPassword; }
            set { oldPassword = value; this.RaisePropertyChanged(); }
        }

        public string NewPassword
        {
            get { return newPassword; }
            set { newPassword = value; this.RaisePropertyChanged(); }
        }

        public string ConfirmPassword
        {
            get { return confirmPassword; }
            set { confirmPassword = value; this.RaisePropertyChanged(); }
        }
        public string OldPasswordTips
        {
            get { return oldPasswordTips; }
            set { oldPasswordTips = value; this.RaisePropertyChanged(); }
        }

        public string NewPasswordTips
        {
            get { return newPasswordTips; }
            set { newPasswordTips = value; this.RaisePropertyChanged(); }
        }

        public string ConfirmPasswordTips
        {
            get { return confirmPasswordTips; }
            set { confirmPasswordTips = value; this.RaisePropertyChanged(); }
        }

        /// <summary>
        /// 清空提示
        /// </summary>
        public void ClearTips()
        {
            OldPasswordTips = string.Empty;
            NewPasswordTips = string.Empty;
            ConfirmPasswordTips = string.Empty;
        }

        /// <summary>
        /// 清空密码
        /// </summary>
        public void ClearPassword()
        {
            OldPassword = string.Empty;
            NewPassword = string.Empty;
            ConfirmPassword = string.Empty;
        }
    }
}
